package com.example.mall.param.product;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;


@Data
public class AddProductParam {


    /**
     * 分类id
     */
    @JsonProperty(value = "type_id")
    private Integer typeId;


    /**
     * 商品名称
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * 商品描述
     */
    @JsonProperty(value = "sell_point")
    private String sellPoint;

    /**
     * 商品单价
     */
    @JsonProperty(value = "price")
    private Long price;

    /**
     * 库存数量
     */
    @JsonProperty(value = "num")
    private Integer num;


    /**
     * 显示优先级
     */
    @JsonProperty(value = "priority")
    private Integer priority;


    /**
     * 品牌商id
     */
    @JsonProperty(value = "brands_id")
    private Integer brandsId;

    /**
     * 图片路径
     */
    @JsonProperty(value = "brands_id")
    public String image;
}
